<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 对于对象属性操作： 1. “.”  2. “[]”

        let n =  Symbol();

        let obj = {
            a:12,
            b:5,
            [n]:101,
            [Symbol()]:200,
            [Symbol()]:300
        } 

        console.log(obj);

        // obj.a = 666;

        // obj["a"] = 888;

        // obj["abc"] = 999;

        // 独一无二的值
        // let abc = Symbol();

        // obj[abc] = 100;

        // console.log(obj);

        // console.log(obj[abc]);

        console.log(obj[n]);


    </script>
</body>
</html>